package com.mew.lobby.provide;

import com.zebra.common.ZbmMessage;
import com.zebra.remoting.config.TmsServerInfo;
import com.zebra.remoting.tms.TmsToRegisterMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author King.Song
 * @Date 2020/12/1 0001
 **/
@Component
@FeignClient(value = "fagp-ratel")
public interface ServerRegisterFeignService {

    @PostMapping(value = "/register/tms")
    @ResponseBody
    TmsServerInfo registerServerAndRedis(@RequestBody TmsToRegisterMessage request);

    @PostMapping(value = "/zbm/common")
    @ResponseBody
    Integer zbmCommon(@RequestBody ZbmMessage request);

}
